package com.huawei.appgallery.updatemanager.ui.cardkit.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.foundation.ui.framework.widget.Space;
import com.huawei.appgallery.updatemanager.ui.cardkit.card.IgnoreUpdateRecordCard;
import o.cgu;
import o.cih;
import o.czk$e;

public class IgnoreUpdateRecordNode extends NotRecommendUpdateRecordNode {
    public IgnoreUpdateRecordNode(Context context) {
        super(context);
    }

    public ViewGroup ˊ(LayoutInflater layoutInflater, ViewGroup viewGroup) {
        return (ViewGroup) layoutInflater.inflate(czk$e.ॱ, viewGroup);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        int i = 0;
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        layoutParams.weight = 1.0f;
        layoutParams.topMargin = 0;
        int ˏ = ˏ();
        while (i < ˏ) {
            LayoutParams layoutParams2 = new LinearLayout.LayoutParams(cgu.ˋ(), -1);
            if (i != 0) {
                viewGroup.addView(new Space(this.ॱ), layoutParams2);
            }
            View inflate = this.ˊ.inflate(czk$e.ˊ, null);
            cih ignoreUpdateRecordCard = new IgnoreUpdateRecordCard(this.ॱ);
            ignoreUpdateRecordCard.ˏ(inflate);
            ˊ(ignoreUpdateRecordCard);
            viewGroup.addView(inflate, layoutParams);
            i++;
        }
        return true;
    }
}
